/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-05     donghaomin       the first version
 */
#ifndef APPLICATIONS_D_BLUETOOTH_BLUETOOTH_H_
#define APPLICATIONS_BLUETOOTH_BLUETOOTH_H_

#include <d_diag/diag.h>
#include "d_hardware.h"

#define AT_OK_ACK "AT"
#define AT_OK_ANS "OK"

#define AT_SET_BAUD_115200_ACK "AT+BAUD115200"
#define AT_SET_BAUD_115200_ANS "+BAUD=115200OK"

#define AT_TYPE_ACK "AT+TYPE"     // 获取连接蓝牙设备类型
#define AT_TYPE_ANC "+TYPE=0x0040" // 电话类型设备
#define AT_TYPE_NO  "+TYPE=0x0040" // 电话类型设备

//#define "AT+NOTI"

extern errornum bluetooth_AT_COM_CMD(void *cmd_ack,void *cmd_ans);
extern errornum bluetooth_AT_OK(void);

#endif /* APPLICATIONS_D_BLUETOOTH_BLUETOOTH_H_ */
